package com.ddtech.business.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ddtech.business.course.entity.CourseChapter;
import com.ddtech.business.course.query.ChapterQuery;
import com.ddtech.business.course.vo.res.CourseChapterVrResVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 章节表 Mapper 接口
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Mapper
public interface CourseChapterMapper extends BaseMapper<CourseChapter> {

    /***
     * description: 查询章节列表
     * @param:  * @param page
     * @param chapterQuery
     * @date: 2023-05-02
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<java.util.Map<java.lang.String,java.lang.Object>>
     * @version v1.0
     * @author:wei_zhang(xiao)
     */
    IPage<CourseChapterVrResVo> getPage(IPage page, @Param("chapterQuery") ChapterQuery chapterQuery);
}
